package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.YkrkProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface YkrkProductService extends BaseService<YkrkProductBean> {

	YkrkProductBean getYkrkProductBeanById(String id) throws Exception;
	
	void removeYkrkProductBeanById(String id) throws Exception;
	
	void removeYkrkProductBeanByIds(String ids) throws Exception;
	
	YkrkProductBean saveYkrkProductBean(YkrkProductBean crm) throws Exception;
	
	YkrkProductBean updateYkrkProductBean(YkrkProductBean crm) throws Exception;
	
	Page<YkrkProductBean>  findYkrkProductBeanByCond(YkrkProductBean bean,
			Page<YkrkProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveYkrkProductBeanExt(String sql) throws Exception;

	String findYkrkProductBeanExtCreate(String tableName) throws Exception;

	String findYkrkProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findYkrkProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasYkrkProductBeanExtData(String tableName, String id)
			throws Exception;
}